<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setCharacterEncoding("UTF-8");
%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>后台管理首页</title>

    <link href="<%=basePath%>/back_admin/vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="<%=basePath%>/back_admin/vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="<%=basePath%>/back_admin/vendors/nprogress/nprogress.css" rel="stylesheet">
    <link href="<%=basePath%>/back_admin/vendors/iCheck/skins/flat/green.css" rel="stylesheet">
    <link href="<%=basePath%>/back_admin/vendors/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet">
    <link href="<%=basePath%>/back_admin/vendors/jqvmap/dist/jqvmap.min.css" rel="stylesheet"/>
    <link href="<%=basePath%>/back_admin/vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
    <link href="<%=basePath%>/back_admin/build/css/custom.min.css" rel="stylesheet">
	
	<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
	<script src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>
	<script type="text/javascript" charset="utf-8" src="<%=basePath%>/ueditor/ueditor.config.js"></script>
	<script type="text/javascript" charset="utf-8" src="<%=basePath%>/ueditor/lang/zh-cn/zh-cn.js"></script>
	<script type="text/javascript" charset="utf-8" src="<%=basePath%>/ueditor/ueditor.all.min.js"></script>

  </head>

  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
          <div class="left_col scroll-view">
            <div class="navbar nav_title" style="border: 0;">
              <a href="#" class="site_title"><i class="fa fa-paw"></i> <span>后台管理系统</span></a>
            </div>

            <div class="clearfix"></div>

            <!-- menu profile quick info -->
            <div class="profile clearfix">
              <div class="profile_pic">
                
              </div>
              <div class="profile_info" style="width:100%">
                <span style="width:100%">Welcome, 登陆管理系统</span>
              </div>
            </div>
            <!-- /menu profile quick info -->

            <br />

			<%@ include file="/WEB-INF/views/layout/left_menu.jsp"%>
          </div>
        </div>

        <!-- top navigation -->
        <div class="top_nav">
            <div class="nav_menu" style="height:60px;line-height:60px;padding-left:60px;overflow:hidden;padding-top:10px      ">
           		<h3><B>江  北  区  市  民  服  务  中  心  管  理  平  台</B></h3>
          </div>
        </div>
        <div class="right_col" role="main">        
          <div class="row">
      
          	<div class="col-md-12 col-sm-12 col-xs-12" >
				<div class="x_content">
                   
                    <div id="wizard" class="form_wizard wizard_horizontal" style="height:auto;"> 
                      <div class="x_panel">
                      	<div class="row">
				          	<div class="col-md-12 col-sm-12 col-xs-12">
				          		<table class="table table-striped">
				          			<thead>
										<tr style="height:60px;color:#000000;">
									    	<th>序号</th>
									      	<th>机构名称</th>
									      	<th>操作</th>
									    </tr>
									</thead>
									
										<c:forEach items="${message}" var="p" varStatus="id">
											 	<tr>
													<td>${p.id}</td>
													<td><a href="<%=basePath%>/user/getUser?id=${p.id}">${p.institutionName}</a></td>
													<td>
														<c:if test="${p.showAtFront == '1' }"><a href="<%=basePath%>/user/removeFrontSupplier?id=${p.id}" >
															<button type="button" class="btn btn-primary" >取消（首页）</button></a> 
														</c:if>
														<c:if test="${p.showAtFront != '1'}"><a href="<%=basePath%>/user/toFrontSupplier?id=${p.id}" >
															<button type="button" class="btn btn-primary" >确认（首页）</button></a>
														</c:if>
														<c:if test="${p.showAtOnekey == '1' }"><a href="<%=basePath%>/user/removeOneKeySupplier?id=${p.id}" >
															<button type="button" class="btn btn-submit" >取消（一键通）</button></a> 
														</c:if>
														<c:if test="${p.showAtOnekey != '1' }"><a href="<%=basePath%>/user/toOneKeySupplier?id=${p.id}" >
															<button  type="button" class="btn btn-submit" >确认（一键通）</button></a>
														</c:if>
													</td>
												</tr>
										</c:forEach>
									
									
								</table>
				          	</div>
				          </div>
                      </div>

                    </div>
          
                  </div>
          	</div>
          </div>
        </div>
        <footer>
          <div class="clearfix">制作单位：来吧兄弟重创科技有限公司</div>
        </footer>
      </div>
    </div>
    <script type="text/javascript">
    $(document).ready(function() {
    	var par = '<%=request.getAttribute("about")%>';

    	if(par == 'failed')
    	{
    		 alert("数据过多，请取消之前的"); 
    	}	
    });
	</script>
  </body>
</html>